/*
 * 文档上传
 * */
define(function(require,exports,module){


	function Main(jqDom,params){
		var ui = {
			eName:'formEx',
			url:'upload.do',
			method:"post",//上传表单时，必须设置此值
			enctype:"multipart/form-data",//上传附件时，必须设置此值
			progressBar:"文件上传中...",//进度条内容，空不显示进度条
			elements:[{
				eName:'filebox',
				name:'warfile'
			},{
				eName:'linkbutton',
				text:'上传',
				onClick:function(){
					$ui.print('upload');
					jqForm.formEx('submit');
				}
			}]
		}
		var jqForm = jqDom.createUI(ui);
	}
	

	module.exports = Main;
	
});